<!DOCTYPE html>
<html>
<head>
  <title>IGraphClientConfig.java</title>
  <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/>
  <link rel='stylesheet' type='text/css' href='../../../../../coverage.css'/>
  <link rel='shortcut icon' type='image/png' href='../../../../../logo.png'/>
  <script type='text/javascript' src='../../../../../coverage.js'></script>
  <script type='text/javascript' src='../../../../../prettify.js'></script>
</head>
<body onload='prettyPrint()'>
  <table cellpadding='0' cellspacing='1'>
    <caption>igraph_client_java/src/main/java/com/taobao/igraph/client/config/IGraphClientConfig.java</caption>
    <tr>
      <td class='line'>1</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>package com.taobao.igraph.client.config;</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'></td><td>&nbsp;</td>
      <td><pre class='imports prettyprint' onclick='showHideLines(this)'><div>import lombok.NonNull;
</div><span>import ...</span></pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>5</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>public class IGraphClientConfig {</pre></td>
    </tr>
    <tr>
      <td class='line'>6</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    private static final String DEFAULT_CLUSTER = "DEFAULT";</pre></td>
    </tr>
    <tr>
      <td class='line'>7</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    private PgConfig pgConfig;</pre></td>
    </tr>
    <tr>
      <td class='line'>8</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    private String searchDomain;</pre></td>
    </tr>
    <tr>
      <td class='line'>9</td><td class='count'>2</td>
      <td><pre class='prettyprint covered' id='l9s0'>    private String searchCluster = DEFAULT_CLUSTER;</pre></td>
    </tr>
    <tr>
      <td class='line'>10</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    private String updateDomain;</pre></td>
    </tr>
    <tr>
      <td class='line'>11</td><td class='count'>2</td>
      <td><pre class='prettyprint covered' id='l11s0'>    private String updateCluster = DEFAULT_CLUSTER;</pre></td>
    </tr>
    <tr>
      <td class='line'>12</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    private boolean daily;</pre></td>
    </tr>
    <tr>
      <td class='line'>13</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    private String src;</pre></td>
    </tr>
    <tr>
      <td class='line'>14</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    private String localAddress;</pre></td>
    </tr>
    <tr>
      <td class='line'>15</td><td class='count'>2</td>
      <td><pre class='prettyprint covered' id='l15s0'>    private boolean autoNewTrace = false;</pre></td>
    </tr>
    <tr>
      <td class='line'>16</td><td class='count'>2</td>
      <td><pre class='prettyprint covered' id='l16s0'>    private boolean traceInHeader = true; // encode eagleeye trace data in http header</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>18</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l18s0'>    public IGraphClientConfig() {</pre></td>
    </tr>
    <tr>
      <td class='line'>19</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l19s0'>        this.pgConfig = new PgConfig();</pre></td>
    </tr>
    <tr>
      <td class='line'>20</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l20s0'>    }</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>22</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l22s0'>    public IGraphClientConfig(IGraphClientConfig iGraphClientConfig) {</pre></td>
    </tr>
    <tr>
      <td class='line'>23</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l23s0'>        this.pgConfig = new PgConfig(iGraphClientConfig.pgConfig);</pre></td>
    </tr>
    <tr>
      <td class='line'>24</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l24s0'>        this.searchDomain = iGraphClientConfig.searchDomain;</pre></td>
    </tr>
    <tr>
      <td class='line'>25</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l25s0'>        this.searchCluster = iGraphClientConfig.searchCluster;</pre></td>
    </tr>
    <tr>
      <td class='line'>26</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l26s0'>        this.daily = iGraphClientConfig.daily;</pre></td>
    </tr>
    <tr>
      <td class='line'>27</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l27s0'>        this.src = iGraphClientConfig.src;</pre></td>
    </tr>
    <tr>
      <td class='line'>28</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l28s0'>        this.localAddress = iGraphClientConfig.localAddress;</pre></td>
    </tr>
    <tr>
      <td class='line'>29</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l29s0'>        this.autoNewTrace = iGraphClientConfig.autoNewTrace;</pre></td>
    </tr>
    <tr>
      <td class='line'>30</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l30s0'>        this.traceInHeader = iGraphClientConfig.traceInHeader;</pre></td>
    </tr>
    <tr>
      <td class='line'>31</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l31s0'>    }</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>33</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    public PgConfig getPgConfig() {</pre></td>
    </tr>
    <tr>
      <td class='line'>34</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l34s0'>        return pgConfig;</pre></td>
    </tr>
    <tr>
      <td class='line'>35</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    }</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>37</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    public String getSearchDomain() {</pre></td>
    </tr>
    <tr>
      <td class='line'>38</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l38s0'>        return searchDomain;</pre></td>
    </tr>
    <tr>
      <td class='line'>39</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    }</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>41</td><td class='count'>1</td>
      <td><pre class='prettyprint jmp'>    <span id='l41s0' title='Executions: 1' class='covered'>public void setSearchDomain(@NonNull String searchDomain) {</span></pre></td>
    </tr>
    <tr>
      <td class='line'>42</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l42s0'>        this.searchDomain = searchDomain;</pre></td>
    </tr>
    <tr>
      <td class='line'>43</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l43s0'>    }</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>45</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    public String getSearchCluster() {</pre></td>
    </tr>
    <tr>
      <td class='line'>46</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l46s0'>        return searchCluster;</pre></td>
    </tr>
    <tr>
      <td class='line'>47</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    }</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>49</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    public void setSearchCluster(String searchCluster) {</pre></td>
    </tr>
    <tr>
      <td class='line'>50</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l50s0'>        this.searchCluster = searchCluster;</pre></td>
    </tr>
    <tr>
      <td class='line'>51</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l51s0'>    }</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>53</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    public String getUpdateDomain() {</pre></td>
    </tr>
    <tr>
      <td class='line'>54</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l54s0'>        return updateDomain;</pre></td>
    </tr>
    <tr>
      <td class='line'>55</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    }</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>57</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    public void setUpdateDomain(String updateDomain) {</pre></td>
    </tr>
    <tr>
      <td class='line'>58</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l58s0'>        this.updateDomain = updateDomain;</pre></td>
    </tr>
    <tr>
      <td class='line'>59</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l59s0'>    }</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>61</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    public String getUpdateCluster() {</pre></td>
    </tr>
    <tr>
      <td class='line'>62</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l62s0'>        return updateCluster;</pre></td>
    </tr>
    <tr>
      <td class='line'>63</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    }</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>65</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    public void setUpdateCluster(String updateCluster) {</pre></td>
    </tr>
    <tr>
      <td class='line'>66</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l66s0'>        this.updateCluster = updateCluster;</pre></td>
    </tr>
    <tr>
      <td class='line'>67</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l67s0'>    }</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>69</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    public boolean isDaily() {</pre></td>
    </tr>
    <tr>
      <td class='line'>70</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l70s0'>        return daily;</pre></td>
    </tr>
    <tr>
      <td class='line'>71</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    }</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>73</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    public void setDaily(boolean daily) {</pre></td>
    </tr>
    <tr>
      <td class='line'>74</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l74s0'>        this.daily = daily;</pre></td>
    </tr>
    <tr>
      <td class='line'>75</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l75s0'>    }</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>77</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    public String getSrc() {</pre></td>
    </tr>
    <tr>
      <td class='line'>78</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l78s0'>        return src;</pre></td>
    </tr>
    <tr>
      <td class='line'>79</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    }</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>81</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    public void setSrc(String src) {</pre></td>
    </tr>
    <tr>
      <td class='line'>82</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l82s0'>        this.src = src;</pre></td>
    </tr>
    <tr>
      <td class='line'>83</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l83s0'>    }</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>85</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    public String getLocalAddress() {</pre></td>
    </tr>
    <tr>
      <td class='line'>86</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l86s0'>        return localAddress;</pre></td>
    </tr>
    <tr>
      <td class='line'>87</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    }</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>89</td><td class='count'>1</td>
      <td><pre class='prettyprint jmp'>    <span id='l89s0' title='Executions: 1' class='covered'>public void setLocalAddress(@NonNull String localAddress) {</span></pre></td>
    </tr>
    <tr>
      <td class='line'>90</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l90s0'>        this.localAddress = localAddress;</pre></td>
    </tr>
    <tr>
      <td class='line'>91</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l91s0'>    }</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>93</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    public boolean isAutoNewTrace() {</pre></td>
    </tr>
    <tr>
      <td class='line'>94</td><td class='count'>1</td>
      <td><pre class='prettyprint covered' id='l94s0'>        return autoNewTrace;</pre></td>
    </tr>
    <tr>
      <td class='line'>95</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    }</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>97</td><td>&nbsp;</td>
      <td><pre class='comment'>    // 当在当前线程中没有开启鹰眼trace时，该标志决定是否自动开启新的trace，此时新的trace rpc id为EagleEye.MAL_ROOT_RPC_ID</pre></td>
    </tr>
    <tr>
      <td class='line'>98</td><td>&nbsp;</td>
      <td><pre class='comment'>    // 默认为false</pre></td>
    </tr>
    <tr>
      <td class='line'>99</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    public void setAutoNewTrace(boolean autoNewTrace) {</pre></td>
    </tr>
    <tr>
      <td class='line'>100</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l100s0'>        this.autoNewTrace = autoNewTrace;</pre></td>
    </tr>
    <tr>
      <td class='line'>101</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l101s0'>    }</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>103</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    public boolean isTraceInHeader() {</pre></td>
    </tr>
    <tr>
      <td class='line'>104</td><td class='count'>2</td>
      <td><pre class='prettyprint covered' id='l104s0'>        return traceInHeader;</pre></td>
    </tr>
    <tr>
      <td class='line'>105</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    }</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>107</td><td>&nbsp;</td>
      <td><pre class='comment'>    // 是否通过http header传递鹰眼trace数据，默认为true</pre></td>
    </tr>
    <tr>
      <td class='line'>108</td><td>&nbsp;</td>
      <td><pre class='comment'>    // 通过http header传递时，会将trace id, rpc id，user data全部传递，该配置为false时则通过query传递</pre></td>
    </tr>
    <tr>
      <td class='line'>109</td><td>&nbsp;</td>
      <td><pre class='comment'>    // 通过query传递时仅传递trace id, rpc id</pre></td>
    </tr>
    <tr>
      <td class='line'>110</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>    public void setTraceInheader(boolean flag) {</pre></td>
    </tr>
    <tr>
      <td class='line'>111</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l111s0'>        this.traceInHeader = flag;</pre></td>
    </tr>
    <tr>
      <td class='line'>112</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l112s0'>    }</pre></td>
    </tr>
    <tr>
      <td class='line'>113</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>}</pre></td>
    </tr>
  </table>
</body>
</html>
